import { ArticletEntity } from './article.entity';
import { DateTransformer } from './../utils/dateTransformer';
import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, ManyToOne } from 'typeorm';
import { Type } from 'class-transformer';

@Entity('article_remark')
export class ArticleThumbsEntity {

    @Type(() => String)
    @PrimaryGeneratedColumn({ type: 'bigint' })
    id: string

    @Column({ comment: '文章id', type: 'bigint' })
    articleId: string;

    @Column({ comment: '评论人id', type: 'bigint' })
    fromUid: string;

    @Column({ comment: '评论内容', type: 'bigint' })
    comment: string;
   
    @CreateDateColumn({precision:0})
    createTime: Date
}  